package global;

public class GlobalConsts {
	public static final String jobTrackerHost = "192.168.3.129";
	public static final int jobTrackerPort = 9001;
	
	public static final String nameNodeHost = "192.168.3.129";
	public static final int nameNodePort = 9000;
	
	public static final String hadoopUsername = "Bobos";
	
	public final static String fieldSeparator = " ";
	
	public final static String paramNameInputPath = "inputPath";
	public final static String paramNameOutputPath = "outputPath";
	public final static String paramNameBinSizeR0 = "binSizeR0";
	public final static String paramNameBinSizeR1 = "binSizeR1";
	public final static String paramNameKTuples = "kTuples";
	
	public final static String defaultRelationsPath = "relations";
	public final static String defaultHistogramPath = "histograms";
	public final static String defaultJoinPath = "join";
	public final static String defaultOutputPath = "output";
	public final static int defaultBinSizeR0 = 1000;
	public final static int defaultBinSizeR1 = 2000;
	public final static int defaultKTuples = 50;
	
	public final static String fileNameRelation0 = "R0.txt";
	public final static String fileNameRelation1 = "R1.txt";
	public final static String fileNameHistogram0 = "H0.txt";
	public final static String fileNameHistogram1 = "H1.txt";
	public final static int dataSetId0 = 0;
	public final static int dataSetId1 = 1;
	
	public static String getOutputFileName(int fileId) {
		String number = fileId + "";
		while (number.length() < 5) {
			number = "0" + number;
		}
		return "part-" + number;
	}
}
